package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-09-23
 */
@Data
@TableName("TMS_MDriver")
@ApiModel(value = "DriverDO对象", description = "")
public class DriverDO implements Serializable {


    private static final long serialVersionUID = -7911045619443180459L;
    @ApiModelProperty("名字")
    private String driverName;

    @ApiModelProperty("性别 0 男 1 女")
    private Integer driverGender;

    @ApiModelProperty("司机照片")
    private String driverPhoto;

    @ApiModelProperty("出生日志")
    private LocalDateTime driverBirthday;

    @ApiModelProperty("联系电话")
    private String driverPhone;

    @ApiModelProperty("驾照有效结束日期")
    private LocalDateTime driverLicenseddate;

    @ApiModelProperty("驾照类型 1:A照  2：B照 3：C照")
    private Long driverLicensetype;

    @ApiModelProperty("驾驶证号")
    private String driverSn;

    @ApiModelProperty("身份证号码")
    private String driverPersonalsn;

    @ApiModelProperty("公司ID")
    private Long driverCompanyid;

    @ApiModelProperty("创建人")
    private Long driverCreator;

    @ApiModelProperty("创建时间")
    private LocalDateTime driverInserttime;

    @ApiModelProperty("最新修改人")
    private Long driverUpdater;

    @ApiModelProperty("最新修改时间")
    private LocalDateTime driverUpdatetime;

    @ApiModelProperty("是否失效 0 否 1失效")
    private Integer driverInvalid;

    @ApiModelProperty("备注")
    private String driverComments;

    @ApiModelProperty("使用热度")
    private Long driverHeat;

    @ApiModelProperty("用户表userId")
    private Long driverUserid;

    @ApiModelProperty("驾照有效开始日期")
    @TableField(exist = false)
    private LocalDateTime driverLicensedstartdate;

    @ApiModelProperty("初次领证日期")
    @TableField(exist = false)
    private LocalDateTime driverFirstlicensedate;

    @ApiModelProperty("司机昵称")
    @TableField(exist = false)
    private String driverNickname;

    @ApiModelProperty("驾照正面照")
    @TableField(exist = false)
    private String driverLicensefrontphoto;

    @ApiModelProperty("驾照反面照")
    @TableField(exist = false)
    private String driverLicensesidephoto;

    private Integer optStatus;

    @TableId(value = "Driver_ID", type = IdType.AUTO)
    private Long driverId;

    @TableField(exist = false)
    private String raw;

}
